#include "main.h"
#include <string.h>
text menuLine;

void mainMenu()
{

//Draw the menu text
glDisable(GL_LIGHTING);
glColor4f(1.0,1.0,1.0,0);
menuLine=text(0.9,0.56,-0.6,"by Florin N. Coada",2);
menuLine.print();
menuLine=text(0.9,0.6,-0.5,"Solar System",1);
menuLine.print();
menuLine=text(0.9,0.4,-0.65,"Press Space to start",1);
menuLine.print();
menuLine=text(0.9,0.35,-0.7,"Controls: C1/C2",1);
menuLine.print();
menuLine=text(0.9,0.33,-0.722,"w - look/move up",2);
menuLine.print();
menuLine=text(0.9,0.31,-0.724,"s - look/move down",2);
menuLine.print();
menuLine=text(0.9,0.29,-0.726,"a - look/move left",2);
menuLine.print();
menuLine=text(0.9,0.27,-0.728,"d - look/move right",2);
menuLine.print();
menuLine=text(0.9,0.25,-0.73,"q - zoom in",2);
menuLine.print();
menuLine=text(0.9,0.23,-0.732,"e - zoom out",2);
menuLine.print();
menuLine=text(0.9,0.21,-0.734,"p - increase speed",2);
menuLine.print();
menuLine=text(0.9,0.19,-0.736,"o - decrease speed",2);
menuLine.print();
menuLine=text(0.9,0.17,-0.738,"1 - pause spin",2);
menuLine.print();
menuLine=text(0.9,0.15,-0.74,"2 - start spin",2);
menuLine.print();
menuLine=text(0.9,0.13,-0.742,"# - change camera",2);
menuLine.print();

/*int len, i;

char s[30]={"Solar System"};
glRasterPos3f(0.9,0.6,-0.5);
len = strlen(s);
//draw 1 item at a time
for (i = 0; i < len; i++)   {
	                            glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, s[i]);
                             }
char s[40];
strcpy_s(s,"by Florin N. Coada");


strcpy_s(s,"Press Space to start");
glRasterPos3f(0.9,0.4,-0.65);
len = strlen(s);
//draw 1 item at a time
for (i = 0; i < len; i++)   {
	                            glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, s[i]);
                             }
*/
glColor4f(0.0,0.0,0.0,0.0);
glEnable(GL_LIGHTING);
}